package com.note.notes.service.internal;

import com.note.common.domain.File;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Package：com.note.notes.dao
 * @Name：MinioFileService
 * @Author：热伊木
 * @Email：uyevan@163.com
 * @Date：2024-05-02-9:10
 * @Description：文件笔记上传记录与删除移除服务
 */
@Component
@FeignClient(value = "note-services", contextId = "note-services-createFile")
public interface MinioFileService {
    /**
     * 调用文件记录服务
     *
     * @param file
     */
    /*@Async*/
    @PostMapping(value = "/services/internal/recordUploadNoteFile")
    void createFile(@RequestParam("internalKey") String internalKey, @SpringQueryMap File file);
}
